/*
 * playerinput.cpp
 *
 *  Created on: 2009-09-02
 *      Author: ck
 */

#include "playerinput.h"

PlayerInput::PlayerInput()
{


}

PlayerInput::~PlayerInput()
{

}

bool PlayerInput::differsFrom(const PlayerInput& pi) const
{
	return (dir1 != pi.getDir1() || dir2 != pi.getDir2() || angle != pi.getAngle());
}

void PlayerInput::setDir1(quint8 d1)
{
	dir1 = d1;
}

void PlayerInput::setDir2(quint8 d2)
{
	dir2 = d2;
}

void PlayerInput::setAngle(qreal ang)
{
	angle = ang;
}

void PlayerInput::setIsShooting(bool isSh)
{
	isShooting = isSh;
}

quint8 PlayerInput::getDir1() const
{
	return dir1;
}
quint8 PlayerInput::getDir2() const
{
	return dir2;
}
qreal PlayerInput::getAngle() const
{
	return angle;
}
bool PlayerInput::getIsShooting() const
{
	return isShooting;
}
